package gang.org.springframework.framework.bean;

/**
 * 描述中间类
 * BeanDefinitionHolder 承接三个重要属性
 * beanName 类名称
 * beanDefinition
 * */
public class GangBeanDefinitionHolder {
    private final String beanName;
    private final String[] aliases;
    private final GangBeanDefinition beanDefinition;

    public GangBeanDefinitionHolder(GangBeanDefinition beanDefinition, String beanName){
        this(beanDefinition,beanName,null);
    }

    public GangBeanDefinitionHolder(GangBeanDefinition beanDefinition, String beanName, String[] aliases){
        this.beanDefinition = beanDefinition;
        this.beanName = beanName;
        this.aliases = aliases;
    }

    public GangBeanDefinition getBeanDefinition() {
        return this.beanDefinition;
    }

    public String getBeanName() {
        return this.beanName;
    }
}
